package com.fang.common.entity.dto;

import com.fang.common.request.BaseRequest;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Bernie_fang
 * @Description:
 * @create 2025/5/2 22:52
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class NetDisLogDto extends BaseRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 请求唯一码
     */
    private String requestId;
    /**
     * 请求路径
     */
    private String requestPath;
    /**
     * 请求ip
     */
    private String ip;
    /**
     * 请求时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH", timezone = "GMT+8")
    private Date requestTime;
    /**
     * 返回码
     */
    private String code;
    /**
     * 用户代理
     */
    private String userAgent;

}
